package name.huzhenbo.java.objects;

import java.util.Comparator;

class PhoneNumberSortedByName implements Comparator<PhoneNumber> {

    public int compare(PhoneNumber o1, PhoneNumber o2) {
        return o1.getName().compareTo(o2.getName());
    }

}
